import React, { useEffect, useState } from 'react'
import useScrollPosition from '../hooks/scroll-position-scroll'

export default function CustomScrollPositionHook() {
  
  const position = useScrollPosition()

  return (
    <div style={{padding: '1000px 0'}}>
      <h2>CustomScrollPositionHook</h2>
      <h2>ScrollPosition: {position}</h2>
    </div>
  )
}
